package com.spddr.pmos.cxf;

import java.util.List;

import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import com.spddr.pmos.jpa.CustomerCredit;
import com.spddr.pmos.jpa.CustomerEvalId;

import cn.seqdata.cxf.repos.JaxrsRepository;

@Path("/customer/{customer}/credit")
public interface JaxrsCustomerCredit extends JaxrsRepository<CustomerCredit, CustomerEvalId> {
	@GET
	@Path("/")
	List<CustomerCredit> findByCustomer(@PathParam("customer") long customer);

	@PUT
	@Path("/")
	void saveByCustomer(@PathParam("customer") long customer, List<CustomerCredit> entities);

	@DELETE
	@Path("/")
	void deleteByCustomer(@PathParam("customer") long customer);
}
